552 research outputs found

    A debugging model for functional logic programs

    Get PDF
    This paper presents a box-oriented debugging model for the functional logic language ALF. Due to the sophisticated operational semantics of ALF which is based on innermost basic narrowing with simplification, the debugger must reflect the application of the different computation rules during program execution. Hence our debugging model includes not only one box type as in Byrd's debugging model for logic programs but several different kinds of boxes corresponding to the various computation rules of the functional logic language (narrowing, simplification etc.). Moreover, additional box types are introduced in order to allow skips over (sometimes) uninteresting program parts like proofs of the condition in a conditional equation. Since ALF is a genuine amalgamation of functional and logic languages, our debugging model subsumes operational aspects of both kinds of languages. As a consequence, it can be also used for pure logic languages, pure functional languages with eager evaluation, or functional logic languages with a less sophisticated operational semantics like SLOG or eager BABEL

    Importance of the model selection for processing dynamic three-point bending tests

    Get PDF
    International audienceThe Split-Hopkinson Pressure Bar apparatus remains the standard test to investigate high strain rate materials properties. To determine the tensile strength of quasi-brittle materials three-point bending tests are frequently employed. In this paper, we compare different analytical models for processing the recorded experimental wave signals. It is concluded that only the semi-infinite beam model and the modal superposition analysis with several modes are relevant to get precise strain rate and material dynamic characteristic

    From Boolean Equalities to Constraints

    Get PDF
    Although functional as well as logic languages use equality to discriminate between logically different cases, the operational meaning of equality is different in such languages. Functional languages reduce equational expressions to their Boolean values, True or False, logic languages use unification to check the validity only and fail otherwise. Consequently, the language Curry, which amalgamates functional and logic programming features, offers two kinds of equational expressions so that the programmer has to distinguish between these uses. We show that this distinction can be avoided by providing an analysis and transformation method that automatically selects the appropriate operation. Without this distinction in source programs, the language design can be simplified and the execution of programs can be optimized. As a consequence, we show that one kind of equational expressions is sufficient and unification is nothing else than an optimization of Boolean equality

    Combining Static and Dynamic Contract Checking for Curry

    Full text link
    Static type systems are usually not sufficient to express all requirements on function calls. Hence, contracts with pre- and postconditions can be used to express more complex constraints on operations. Contracts can be checked at run time to ensure that operations are only invoked with reasonable arguments and return intended results. Although such dynamic contract checking provides more reliable program execution, it requires execution time and could lead to program crashes that might be detected with more advanced methods at compile time. To improve this situation for declarative languages, we present an approach to combine static and dynamic contract checking for the functional logic language Curry. Based on a formal model of contract checking for functional logic programming, we propose an automatic method to verify contracts at compile time. If a contract is successfully verified, dynamic checking of it can be omitted. This method decreases execution time without degrading reliable program execution. In the best case, when all contracts are statically verified, it provides trust in the software since crashes due to contract violations cannot occur during program execution.Comment: Pre-proceedings paper presented at the 27th International Symposium on Logic-Based Program Synthesis and Transformation (LOPSTR 2017), Namur, Belgium, 10-12 October 2017 (arXiv:1708.07854

    Non-linear Pattern Matching with Backtracking for Non-free Data Types

    Full text link
    Non-free data types are data types whose data have no canonical forms. For example, multisets are non-free data types because the multiset {a,b,b}\{a,b,b\} has two other equivalent but literally different forms {b,a,b}\{b,a,b\} and {b,b,a}\{b,b,a\}. Pattern matching is known to provide a handy tool set to treat such data types. Although many studies on pattern matching and implementations for practical programming languages have been proposed so far, we observe that none of these studies satisfy all the criteria of practical pattern matching, which are as follows: i) efficiency of the backtracking algorithm for non-linear patterns, ii) extensibility of matching process, and iii) polymorphism in patterns. This paper aims to design a new pattern-matching-oriented programming language that satisfies all the above three criteria. The proposed language features clean Scheme-like syntax and efficient and extensible pattern matching semantics. This programming language is especially useful for the processing of complex non-free data types that not only include multisets and sets but also graphs and symbolic mathematical expressions. We discuss the importance of our criteria of practical pattern matching and how our language design naturally arises from the criteria. The proposed language has been already implemented and open-sourced as the Egison programming language

    Near-Earth asteroid (3200) Phaethon. Characterization of its orbit, spin state, and thermophysical parameters

    Full text link
    The near-Earth asteroid (3200) Phaethon is an intriguing object: its perihelion is at only 0.14 au and is associated with the Geminid meteor stream. We aim to use all available disk-integrated optical data to derive a reliable convex shape model of Phaethon. By interpreting the available space- and ground-based thermal infrared data and Spitzer spectra using a thermophysical model, we also aim to further constrain its size, thermal inertia, and visible geometric albedo. We applied the convex inversion method to the new optical data obtained by six instruments and to previous observations. The convex shape model was then used as input for the thermophysical modeling. We also studied the long-term stability of Phaethon's orbit and spin axis with a numerical orbital and rotation-state integrator. We present a new convex shape model and rotational state of Phaethon: a sidereal rotation period of 3.603958(2) h and ecliptic coordinates of the preferred pole orientation of (319∘^{\circ}, −-39∘^{\circ}) with a 5∘^{\circ} uncertainty. Moreover, we derive its size (DD=5.1±\pm0.2 km), thermal inertia (Γ\Gamma=600±\pm200 J m−2^{-2} s−1/2^{-1/2} K−1^{-1}), geometric visible albedo (pVp_{\mathrm{V}}=0.122±\pm0.008), and estimate the macroscopic surface roughness. We also find that the Sun illumination at the perihelion passage during the past several thousand years is not connected to a specific area on the surface, which implies non-preferential heating.Comment: Astronomy and Astrophysics. In pres

    Physical and dynamical characterization of the Euphrosyne asteroid Family

    Full text link
    The Euphrosyne asteroid family occupies a unique zone in orbital element space around 3.15 au and may be an important source of the low-albedo near-Earth objects. The parent body of this family may have been one of the planetesimals that delivered water and organic materials onto the growing terrestrial planets. We aim to characterize the compositional properties as well as the dynamical properties of the family. We performed a systematic study to characterize the physical properties of the Euphrosyne family members via low-resolution spectroscopy using the IRTF telescope. In addition, we performed smoothed-particle hydrodynamics (SPH) simulations and N-body simulations to investigate the collisional origin, determine a realistic velocity field, study the orbital evolution, and constrain the age of the Euphrosyne family. Our spectroscopy survey shows that the family members exhibit a tight taxonomic distribution, suggesting a homogeneous composition of the parent body. Our SPH simulations are consistent with the Euphrosyne family having formed via a reaccumulation process instead of a cratering event. Finally, our N-body simulations indicate that the age of the family is 280 Myr +180/-80 Myr, which is younger than a previous estimate.Comment: 10 pages, 13 figures, accepted to be published in A&

    What is health promotion ethics?

    Get PDF
    editorialWhat does it mean to think about the ethics of health promotion? When most of us think ‘ethics’ we think of the Human Research Ethics Committee applications required for research projects. But I’m thinking of something quite different here: the ethics of health promotion practice. Health promotion ethics is an attempt to answer questions such as: Can we provide a moral justification for what we are doing in health promotion? or What is the right thing to do in health promotion, and how can we tell? As other authors have argued, sometimes these questions are ignored in health promotion in favour of scientific and technical questions about effectiveness. But there is increasing recognition that health promotion is a moral project, that health promotion can be practised in ways that are more or less ethical, and thus that considering ethics in health promotion is just as important as – and related to – considering the evidence about whether or not health promotion works. 1-5 The number of publications about health promotion ethics has been slowly increasing since the 1980s, including in this journal, where authors have particularly argued the importance of being explicit about values in health promotion. If something has value, it has worth or importance. 6 Authors in the HPJA have suggested that health promotion practitioners value: health and wellbeing as opposed to the mere absence of disease, justice, environmental sustainability, empowerment, respect for culture, and truth telling. 3, 7, 8 But concern has been expressed that although these things are valued in health promotion, this may not always influence the way that health promotion is implemented and evaluated.NHMR

    Observing the variation of asteroid thermal inertia with heliocentric distance

    Get PDF
    Thermal inertia is a useful property to characterise a planetary surface since it can be used as a qualitative measure of the regolith grain size. It is expected to vary with heliocentric distance because of its dependence on temperature. However, no previous investigation has conclusively observed a change in thermal inertia for any given planetary body. We have addressed this by using NEOWISE data and the Advanced Thermophysical Model to study the thermophysical properties of the near-Earth asteroids (1036) Ganymed, (1580) Betulia, and (276049) 2002 CE26 as they moved around their highly eccentric orbits. We confirm that the thermal inertia values of Ganymed and 2002 CE26 do vary with heliocentric distance, although the degree of variation observed depends on the spectral emissivity assumed in the thermophysical modelling. We also confirm that the thermal inertia of Betulia did not change for three different observations obtained at the same heliocentric distance. Depending on the spectral emissivity, the variations for Ganymed and 2002 CE26 are potentially more extreme than that implied by theoretical models of heat transfer within asteroidal regoliths, which might be explained by asteroids having thermal properties that also vary with depth. Accounting for this variation reduces a previously observed trend of decreasing asteroid thermal inertia with increasing size, and suggests that the surfaces of small and large asteroids could be much more similar than previously thought. Furthermore, this variation can affect Yarkovsky orbital drift predictions by a few tens of per cent

    YORP and Yarkovsky effects in asteroids (1685) Toro, (2100) Ra-Shalom, (3103) Eger, and (161989) Cacus

    Full text link
    The rotation states of small asteroids are affected by a net torque arising from an anisotropic sunlight reflection and thermal radiation from the asteroids' surfaces. On long timescales, this so-called YORP effect can change asteroid spin directions and their rotation periods. We analyzed lightcurves of four selected near-Earth asteroids with the aim of detecting secular changes in their rotation rates that are caused by YORP. We use the lightcurve inversion method to model the observed lightcurves and include the change in the rotation rate dω/dt\mathrm{d} \omega / \mathrm{d} t as a free parameter of optimization. We collected more than 70 new lightcurves. For asteroids Toro and Cacus, we used thermal infrared data from the WISE spacecraft and estimated their size and thermal inertia. We also used the currently available optical and radar astrometry of Toro, Ra-Shalom, and Cacus to infer the Yarkovsky effect. We detected a YORP acceleration of dω/dt=(1.9±0.3)×10−8 rad d−2\mathrm{d}\omega / \mathrm{d} t = (1.9 \pm 0.3) \times 10^{-8}\,\mathrm{rad}\,\mathrm{d}^{-2} for asteroid Cacus. For Toro, we have a tentative (2σ2\sigma) detection of YORP from a significant improvement of the lightcurve fit for a nonzero value of dω/dt=3.0×10−9 rad d−2\mathrm{d}\omega / \mathrm{d} t = 3.0 \times 10^{-9}\,\mathrm{rad}\,\mathrm{d}^{-2}. For asteroid Eger, we confirmed the previously published YORP detection with more data and updated the YORP value to (1.1±0.5)×10−8 rad d−2(1.1 \pm 0.5) \times 10^{-8}\,\mathrm{rad}\,\mathrm{d}^{-2}. We also updated the shape model of asteroid Ra-Shalom and put an upper limit for the change of the rotation rate to ∣dω/dt∣≲1.5×10−8 rad d−2|\mathrm{d}\omega / \mathrm{d} t| \lesssim 1.5 \times 10^{-8}\,\mathrm{rad}\,\mathrm{d}^{-2}. Ra-Shalom has a greater than 3σ3\sigma Yarkovsky detection with a theoretical value consistent with observations assuming its size and/or density is slightly larger than the nominally expected values
    • …
    corecore